# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>

pkgname=perl-html-element-extended
pkgver=1.18
pkgrel=10
pkgdesc="Perl extension for HTML::Element"
arch=('any')
url="https://search.cpan.org/dist/HTML-Element-Extended/"
license=('GPL')
depends=('perl')
conflicts=('perl-html-elementtable')
source=("https://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-Element-Extended-$pkgver.tar.gz")
md5sums=('41ec9dcc7cefa03b204d0e8ca8e1c112')

build() {
  cd "$srcdir"/HTML-Element-Extended-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/HTML-Element-Extended-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
